Apply patch from upstream to fix FTBFS on 32-bit architectures
authorSimon McVittie <smcv@debian.org>
Sat, 23 Jun 2018 11:32:41 +0000 (12:32 +0100)
committerSimon McVittie <smcv@debian.org>
Sat, 23 Jun 2018 11:37:22 +0000 (12:37 +0100)
Closes: #902194
debian/changelog
debian/patches/lib-repo-Fix-32-bit-format-string-error.patch [new file with mode: 0644]
debian/patches/series

index 36256de840d5c671371088bf3b35129442d33b91..7a5107b783ad7366b7cadd76d4776b98b1212c46 100644 (file)
@@ -1,3 +1,11 @@
+ostree (2018.6-2) UNRELEASED; urgency=medium
+
+  * d/p/lib-repo-Fix-32-bit-format-string-error.patch:
+    Apply patch from upstream to fix FTBFS on 32-bit architectures
+    (Closes: #902194)
+
+ -- Simon McVittie <smcv@debian.org>  Sat, 23 Jun 2018 12:26:53 +0100
+
 ostree (2018.6-1) unstable; urgency=medium
 
   * New upstream release with support for peer-to-peer software
diff --git a/debian/patches/lib-repo-Fix-32-bit-format-string-error.patch b/debian/patches/lib-repo-Fix-32-bit-format-string-error.patch
new file mode 100644 (file)
index 0000000..28000a1
--- /dev/null
@@ -0,0 +1,31 @@
+From: Colin Walters <walters@verbum.org>
+Date: Thu, 21 Jun 2018 14:17:28 +0000
+Subject: lib/repo: Fix 32 bit format string error
+
+Origin: upstream, 2018.7, commit:1174d9f5ba537562c67084caf0214544fbb14ffc
+---
+ src/libostree/ostree-repo-commit.c | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/src/libostree/ostree-repo-commit.c b/src/libostree/ostree-repo-commit.c
+index 37be748..7e1d707 100644
+--- a/src/libostree/ostree-repo-commit.c
++++ b/src/libostree/ostree-repo-commit.c
+@@ -903,7 +903,7 @@ write_content_object (OstreeRepo         *self,
+             return glnx_throw (error, "min-free-space-percent '%u%%' would be exceeded, %s more required",
+                                self->min_free_space_percent, formatted_required);
+           else
+-            return glnx_throw (error, "min-free-space-size %luMB would be exceeded, %s more required",
++            return glnx_throw (error, "min-free-space-size %" G_GUINT64_FORMAT "MB would be exceeded, %s more required",
+                                self->min_free_space_mb, formatted_required);
+         }
+       /* This is the main bit that needs mutex protection */
+@@ -1617,7 +1617,7 @@ ostree_repo_prepare_transaction (OstreeRepo     *self,
+             return glnx_throw (error, "min-free-space-percent '%u%%' would be exceeded, %s available",
+                                self->min_free_space_percent, formatted_free);
+           else
+-            return glnx_throw (error, "min-free-space-size %luMB would be exceeded, %s available",
++            return glnx_throw (error, "min-free-space-size %" G_GUINT64_FORMAT "MB would be exceeded, %s available",
+                                self->min_free_space_mb, formatted_free);
+         }
+       g_mutex_unlock (&self->txn_lock);
index 264a601e4bbbb407e50412ea5dd59704d0b8c34b..c46336dccd44f865eb7aef14593f54e3a8966511 100644 (file)
@@ -1 +1,2 @@
+lib-repo-Fix-32-bit-format-string-error.patch
 avahi-Fail-immediately-if-we-can-t-talk-to-D-Bus-or-Avahi.patch